package com.htcms.dao;

import com.htcms.base.HibernateBaseDao;
import com.htcms.bean.CountryCode;

public class CountryCodeDAO extends HibernateBaseDao{
	public String getPhoneCodeByShortName(String shortName){
		String hql="from CountryCode country where country.shortName=?";
		Object result=this.uniqueResult(hql,shortName);
		if(null!=result)
			return ((CountryCode)result).getPhoneCode();
		else
			return null;
	}
}
